From 01b09086c9384a122a71365ae3db6135359061d3 Mon Sep 17 00:00:00 2001 From: "cl349@freefall.cl.cam.ac.uk" Date: Fri, 22 Oct 2004 17:44:56 +0000 Subject: [PATCH] bitkeeper revision 1.1159.1.263 (41794718665LsSG3Fbsy6vsHfoGMOA) Use updated evtchn interface to allow console reconnect after xend restart. --- tools/python/xen/lowlevel/xu/xu.c | 2 +- tools/python/xen/xend/server/channel.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/python/xen/lowlevel/xu/xu.c b/tools/python/xen/lowlevel/xu/xu.c index 4af52375fd..d08a17aa11 100644 --- a/tools/python/xen/lowlevel/xu/xu.c +++ b/tools/python/xen/lowlevel/xu/xu.c @@ -1061,7 +1061,7 @@ static PyObject *xu_port_new(PyObject *self, PyObject *args) u32 dom; int port1 = 0, port2 = 0; - if ( !PyArg_ParseTuple(args, "i", &dom) ) + if ( !PyArg_ParseTuple(args, "i|ii", &dom, &port1, &port2) ) return NULL; xup = PyObject_New(xu_port_object, &xu_port_type); diff --git a/tools/python/xen/xend/server/channel.py b/tools/python/xen/xend/server/channel.py index 57861b626a..1401c35435 100755 --- a/tools/python/xen/xend/server/channel.py +++ b/tools/python/xen/xend/server/channel.py @@ -94,7 +94,7 @@ class ChannelFactory: def createPort(self, dom, remote_port=0): """Create a port for a channel to the given domain. """ - return xu.port(dom, remote_port) + return xu.port(dom, 0, remote_port) def channelFactory(): """Singleton constructor for the channel factory. -- 2.30.2